<?php /*
	// Defino si existe Branding de un Sponsor
	if($this->Session->read('ClientesUsuarioLogueado.sponsor') == "S"){
		$mostrar_branding = "display:block; height: 68px;";
		$altura_contenido = 73;
	}else{
		$mostrar_branding = "display:none; height: 0px";
		$altura_contenido = 55;
	}

	// Defino si existe Skyscraper
	if($this->Session->read('ClientesUsuarioLogueado.skyscraper') == "S"){
		$mostrar_skyscraper = "display:block;";
		$ancho_contenido = "66%";
	}else{
		$mostrar_skyscraper = "display:none;";
		$ancho_contenido = "76%";
	}
*/ ?>
<?php header("Content-type: text/html; charset=utf-8");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<meta http-equiv="X-UA-Compatible" content="IE=8" />
	<title>
		<?php __('Epicrisis: Turnos Online'); ?>
		<?php //echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		echo $this->Html->css('reset');
		echo $this->Html->css('grid');        
		echo $this->Html->css('turnos');
		echo $this->Html->css('calendar');
		echo $this->Html->css('start/jquery-ui-1.8.18.custom');        
        
		echo $scripts_for_layout;
		echo $html->meta('icon','/images/favicon.ico', array('type' =>'icon'));

		echo $javascript->link('jquery.tools.min.js'); // Incluye jQuery 1.6.4, Tabs, Tooltip, Scrollable, Overlay
		echo $javascript->link('jquery-ui-1.8.18.custom.min');


        echo $this->Html->script('jquery.validate'); 
		echo $javascript->link('turnoscore');

	?>
    <script type="text/javascript" src="/js/validate/messages_es.js"></script>    
</head>
<body>
<div id="cargando" style="position: fixed; display:none;"><p><?php __('Cargando...'); ?></p></div>

<div id="encabezado_gral2">
		<div id="encabezado2"> 
			<div id="logo"><a href="/">
				<?php 
					$logo = $this->Session->read('Client.logo');
					if(!empty($logo)){ $logo = $this->webroot.'uploads/'.$logo;	} else { $logo = '/images/logo-epicrisis-white.png'; }
				?>
				<img src="<?php echo $logo;?>" style='max-height:50px;'>
			</a></div>
		</div>
	</div>

<div class="container" id="contenedor">

	<div id="panel_izquierdo">&nbsp;</div>
	<div id="panel_derecho">
			<?php echo $this->Session->flash(); ?> 
			<?php echo $content_for_layout; ?>
	</div>
	<div id="derecha">
		<div id="panel_banner_derecho" style="<?php //echo $mostrar_skyscraper ?>">
<!--/* OpenX Javascript Tag v2.8.8 */-->
<?php /*
		<script type='text/javascript'><!--//<![CDATA[
		   var m3_u = (location.protocol=='https:'?'https://ads.epicrisisweb.com.ar/www/delivery/ajs.php':'http://ads.epicrisisweb.com.ar/www/delivery/ajs.php');
		   var m3_r = Math.floor(Math.random()*99999999999);
		   if (!document.MAX_used) document.MAX_used = ',';
		   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
		   document.write ("?zoneid=2");
		   document.write ('&amp;cb=' + m3_r);
		   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
		   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
		   document.write ("&amp;loc=" + escape(window.location));
		   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
		   if (document.context) document.write ("&context=" + escape(document.context));
		   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
		   document.write ("'><\/scr"+"ipt>");
		//]]>--></script><noscript><a href='http://ads.epicrisisweb.com.ar/www/delivery/ck.php?n=afb563ca&amp;cb=2487' target='_blank'><img src='http://ads.epicrisisweb.com.ar/www/delivery/avw.php?zoneid=2&amp;cb=2487&amp;n=afb563ca' border='0' alt='' /></a></noscript>
*/ ?>
		<!--/* FIN OpenX Javascript Tag v2.8.8 */-->
		</div>
	</div>
</div>
<div id="ventana_modal"></div>
<div id="dialog-message"></div>
<div id="footer">
	<?php echo $this->element('analytics'); ?>
</div>
</body>
</html>